<template>
    <div class="zlcBtn" @click="keyUp">
        <div class="lt"></div>
        <div class="rt"></div>
        <div class="rb"></div>
        <div class="lb"></div>
        <slot></slot>
    </div>
</template>

<script>
export default {
    data(){
        return {

        }
    },
    methods:{
        keyUp(){
            this.$emit('keyUp')
        }
    }
}
</script>

<style lang="less" scoped>
.zlcBtn{
  min-width: 92px;
  min-height: 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  border: 1px solid #5A799D;
  background: #334863;
  position: relative;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  cursor: pointer;
  .lt, .rt, .rb, .lb{
    position: absolute;
    width: 4px;
    height: 4px;
    background: transparent;
  }
  .lt{
    left: -1px;
    top: -1px;
    border-width: 1px 0 0 1px;
    border-color: #fff;
    border-style: solid;
  }
  .rt{
    right: -1px;
    top: -1px;
    border-width: 1px 1px 0 0;
    border-color: #fff;
    border-style: solid;
  }
  .rb{
    right: -1px;
    bottom: -1px;
    border-width: 0 1px 1px 0;
    border-color: #fff;
    border-style: solid;
  }
  .lb{
    left: -1px;
    bottom: -1px;
    border-width: 0 0 1px 1px;
    border-color: #fff;
    border-style: solid;
  }
}
</style>
